package com.iot.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.iot.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iot.common.core.domain.BaseEntity;

/**
 * 海岛北斗事件对象 t_beidou_event
 * 
 * @author iot
 * @date 2023-05-10
 */
public class BeidouEvent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private BeidouClient client;

    public BeidouClient getClient() {
        return client;
    }

    public void setClient(BeidouClient client) {
        this.client = client;
    }

    /** $column.columnComment */
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String clientNo;

    /** 事件类型 */
    @Excel(name = "事件类型")
    private String eventType;

    /** 事件ID */
    @Excel(name = "事件ID")
    private String eventId;

    /** 最大报警值 */
    @Excel(name = "最大报警值")
    private Float maxValue;

    /** 最大报警类型 */
    @Excel(name = "最大报警类型")
    private String maxValueType;

    /** 报警数据 */
    @Excel(name = "报警数据")
    private String originData;

    /** 报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eventDate;

    /** 报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报警时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date eventTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClientNo(String clientNo) 
    {
        this.clientNo = clientNo;
    }

    public String getClientNo() 
    {
        return clientNo;
    }
    public void setEventType(String eventType) 
    {
        this.eventType = eventType;
    }

    public String getEventType() 
    {
        return eventType;
    }
    public void setEventId(String eventId) 
    {
        this.eventId = eventId;
    }

    public String getEventId() 
    {
        return eventId;
    }
    public void setMaxValue(Float maxValue)
    {
        this.maxValue = maxValue;
    }

    public Float getMaxValue()
    {
        return maxValue;
    }
    public void setMaxValueType(String maxValueType) 
    {
        this.maxValueType = maxValueType;
    }

    public String getMaxValueType() 
    {
        return maxValueType;
    }
    public void setOriginData(String originData) 
    {
        this.originData = originData;
    }

    public String getOriginData() 
    {
        return originData;
    }

    public Date getEventDate() {
        return eventDate;
    }

    public void setEventDate(Date eventDate) {
        this.eventDate = eventDate;
    }

    public void setEventTime(Date eventTime)
    {
        this.eventTime = eventTime;
    }

    public Date getEventTime() 
    {
        return eventTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clientNo", getClientNo())
            .append("eventType", getEventType())
            .append("eventId", getEventId())
            .append("maxValue", getMaxValue())
            .append("maxValueType", getMaxValueType())
            .append("originData", getOriginData())
            .append("eventDate", getEventDate())
            .append("eventTime", getEventTime())
            .append("remark", getRemark())
            .toString();
    }
}
